package com.acme.task2;

public class Foo {
	private int index;
	
	public Foo(int index) {
		this.index = index;
	}

	@Override
	protected void finalize() throws Throwable {
		try {
			System.out.println(index);		
		} finally {
			super.finalize();
		}
	}
}
